package com.smiier.skin.util;

import java.util.ArrayList;
import java.util.List;

public class StringArrayUtil {

	public static List<Long> parseLong(String array) throws Exception {
		List<Long> arrayList = new ArrayList<Long>();
		for (String item : array.split(",")) {
			arrayList.add(Long.parseLong(item));
		}
		return arrayList;
	}

	public static String toString(List<String> array) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0, size = array.size(); i < size; i++) {
			if (i != 0) {
				sb.append(",");
			}
			sb.append(array.get(i));
		}
		return sb.toString();
	}
}